/**    
 * @{#} SuggestActivity.java Create on 2014-8-22 下午6:04:23    
 *    
 * Copyright (c) 2013 by mark_zhu. 
 * @author <a href="mailto:zjc198805@163.com">mark_zhu</a>   
 * @version 1.0    
 */
package com.mycjj.android.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.mycjj.android.R;


public class SuggestActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_suggest);
		initHeader();
		init();
	}

	private void initHeader() {
		ImageView mHeaderLeftImageview = (ImageView) findViewById(R.id.header_left_button);
		mHeaderLeftImageview.setImageResource(R.drawable.back);
		Button mHeaderRightButton = (Button) findViewById(R.id.header_right_button);
		mHeaderRightButton.setVisibility(View.GONE);
		TextView mHeaderTitleTextView = (TextView) findViewById(R.id.header_title_textview);
		mHeaderTitleTextView.setText("意见反馈");
		mHeaderLeftImageview.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				SuggestActivity.this.finish();
			}
		});
	}
	
	private EditText et_suggest;
	private Button btn_submit;
	private void init(){
		et_suggest = (EditText)findViewById(R.id.et_suggest);
		btn_submit = (Button)findViewById(R.id.btn_submit);
		
		btn_submit.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(SuggestActivity.this, "数据提交成功!", Toast.LENGTH_SHORT).show();
				SuggestActivity.this.finish();
			}
		});
	}
}
